import { BasicColumn, FormSchema } from '@apps/antd-admin/src/components/Table';
import { Api } from '../../wechat/data/api';

export const columns: BasicColumn[] = [
  {
    title: '设备编号',
    dataIndex: 'bizId',
    width: 200,
  },
  {
    title: '首次请求时间',
    dataIndex: 'createTime',
    width: 150,
  },
  {
    title: '最后请求时间',
    dataIndex: 'updateTime',
    width: 150,
  },
];

export const searchFormSchema: FormSchema[] = [
  {
    field: 'bizId',
    label: '设备编号',
    component: 'Input',
    colProps: { span: 4 },
  },
];

export const formSchema: FormSchema[] = [
  {
    label: '标题',
    field: 'htmlTitle',
    component: 'Input',
    required: true,
  },
  {
    label: '内容',
    field: 'htmlContent',
    component: 'TyEditor',
    required: true,
  },
  {
    label: '排序',
    field: 'sortOrder',
    component: 'InputNumber',
    required: true,
  },
];
